﻿using BCDto.UploadHandleComponent;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WeChatSDK.WeChatDto.Material;

namespace BCService.WeChatComponent.WeChatMaterialService.WeChatNewsMaterialService
{
    /// <summary>
    /// 微信图文素材服务接口
    /// </summary>
    public interface IWeChatNewsMaterialService
    {
        /// <summary>
        /// 上传微信图文素材（文章内部图片）
        /// 此图片脱离5000图片限制。
        /// </summary>
        /// <param name="uploadFileDto">上传文件信息</param>
        /// <returns></returns>
        string UploadWeChatNewsMaterial(UploadFileDto uploadFileDto);
        /// <summary>
        /// 微信图文素材上传检查
        /// </summary>
        /// <param name="uploadFileDto">上传文件信息</param>
        void WeChatNewsMaterialCheckData(UploadFileDto uploadFileDto);
        /// <summary>
        /// 上传永久图文素材
        /// </summary>
        /// <param name="newsMaterialDto">图文素材信息</param>
        /// <returns></returns>
        string AddPermanentNews(NewsMaterialDto newsMaterialDto);
        /// <summary>
        /// 修改永久图文素材
        /// </summary>
        /// <param name="mediaId">永久素材Id</param>
        /// <param name="index">需要修改的已存在图文的文章索引</param>
        /// <param name="newsArticles">图文信息</param>
        /// <returns>{"errcode":ERRCODE,"errmsg":ERRMSG} 正常情况下调用成功时，errcode将为0。</returns>
        void UpdatePermanentNewsMaterial(string mediaId, int index, NewsArticles newsArticles);
        /// <summary>
        /// 删除永久图文素材
        /// </summary>
        /// <param name="mediaId">永久素材Id</param>
        void DeletePermanentNews(string mediaId);
    }
}
